Use NULL instead of g_direct_equal
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Sep 2015 22:48:17 +0000 (18:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Sep 2015 22:48:17 +0000 (18:48 -0400)
GHashTable has built-in support for pointer comparison.

gtk/gtkwidget.c

index 4d714b2544197bb738b2ae8e3afa43ab1e154e3d..fd17c2e74b01deef2311fed62a5a44888b6e182e 100644 (file)
@@ -16681,9 +16681,8 @@ get_auto_child_hash (GtkWidget *widget,
 
       widget->priv->auto_children =
        g_hash_table_new_full (g_direct_hash,
-                              g_direct_equal,
-                              NULL,
-                              (GDestroyNotify)g_hash_table_destroy);
+                               NULL,
+                              NULL, (GDestroyNotify)g_hash_table_destroy);
     }
 
   auto_child_hash =